package com.ruoyi.media.invitationCode.mapper;

import com.ruoyi.media.invitationCode.domain.MediaInvitationCode;
import com.ruoyi.media.invitationCode.domain.vo.MediaInvitationCodeVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 用户邀请码Mapper接口
 *
 * @author dqw
 * @date 2023-05-27
 */
public interface MediaInvitationCodeMapper extends BaseMapperPlus<MediaInvitationCodeMapper, MediaInvitationCode, MediaInvitationCodeVo> {


    /**
     * 获取当前账号激活的激活码数据
     * @return
     */
    @Select("SELECT * FROM `media_invitation_code` WHERE  use_user_name = #{useUserName} ")
    MediaInvitationCode getInvitationCodeData(@Param("useUserName")String useUserName);
}
